import request from '@/utils/request'

export function getPmList(params) {
  return request({
    url: '/initValue/pm/pm',
    method: 'get',
    params
  })
}

export function deleteById(id) {
  return request({
    url: '/initValue/pm/deleteById?id='+id,
    method: 'post'
  })
}

export function addPm(data) {
  return request({
    url: '/initValue/pm/add',
    method: 'post',
    data
  })
}
export function updatePm(data) {
  return request({
    url: '/initValue/pm/update',
    method: 'post',
    data
  })
}
export function getEidOptions() {
    return request({
      url:'/initValue/pm/list',
      method: 'get'
    }) 
}

